const BASEURL = '/api';
export default {
	post (url, data) {
		return new Promise((resolve, reject) => {
			uni.request({
				url: BASEURL + url,
				method: 'POST',
				data,
				success: res => {					
					resolve(res.data);
				},
				fail: err => {
					reject(err);
				}
			})
		})
	},
}